<?php
namespace app\admin\validate;
use think\validate;

class AuthGroup extends validate
{
	protected $rule=[
		'title'=>'require|unique:auth_group',
	];

	protected $message=[
		'title.require'=>'角色名称不能为空！',
		'title.unique'=>'角色名称不能重复！',
	];
	protected $scene = [
        'add'  =>  ['title'],
        'edit'  =>  ['title'],
    ];
}